package com.xbongbong.pro.enums;

import lombok.Getter;

import java.util.Objects;

/**
 *Description
 *
 *@author weijianxun
 *@date 2023/1/13 15:54
 */
@Getter
public enum ContractCompareUrlOpenEnum {
    START_COMPARE(0,"合同比对后crm url立即弹开"),
    UNKONW(404,"未知")
    ;


    ContractCompareUrlOpenEnum(Integer code, String description) {
        this.code = code;
        this.description = description;
    }

    private Integer code;
    private String description;


    public static ContractCompareUrlOpenEnum getByCode(Integer code) {
        for (ContractCompareUrlOpenEnum value : values()) {
            if (Objects.equals(value.getCode(), code)) {
                return value;
            }
        }
        return UNKONW;
    }
}
